package com.zhangxun.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhangxun.domain.PickAddr;
import com.zhangxun.service.PickAddrService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api("自提点管理接口")
@RestController
@RequestMapping("/shop/pickAddr")
public class PickAddrController {

    @Autowired
    private PickAddrService pickAddrService;


    @GetMapping("/page")
    @ApiOperation("分页查询自提点接口")
    @PreAuthorize("hasAuthority('shop:pickAddr:page')")
    public Page<PickAddr> pickAddrpPage(Page<PickAddr> page,PickAddr pickAddr){
        page = pickAddrService.selectPage(page,pickAddr);

        return page;
    }
}
